<?php $this->load->view('scenic/layout/header') ?>
<header class="scan-head sec-head flex">
    <div class="sec-return"></div>
    <div class="pay-name">预订失败</div>
    <div class="pay-option flex">
        <a href="<?php echo site_url(); ?>">
            <i class="iconfont">&#xe605;</i>
        </a>
        <a href="<?php echo site_url('home/ucenter/index'); ?>">
            <i class="iconfont">&#xe622;</i>
        </a>
    </div>
</header>
<div class="scanPayError scenic-scanPay widthMax">
    <section class="fail-text flex flex-align-center flex-pack-center">
        <div class="fail-center">
            <i class="iconfont">&#xe620;</i>
            <p class="fail-depict">预订失败，可能的原因是</p>
            <p class="fail-depict-sub"><?php echo $message; ?></p>
            <div class="buttons flex">
                <a href="<?php echo site_url('scenic/order/index'); ?>" class="btn btn-submit">查看我的订单</a>
                <?php $url = (isset($orderInfo) && $orderInfo->calculate_method == 3) ? site_url('scenic/scanpay/index/'. $scenicInfo->sid) : site_url('scenic/home/index'); ?>
                <a href="<?php echo $url; ?>" class="btn btn-return">继续购票</a>
            </div>
        </div>
    </section>
    <div class="more-links am-cf">
        <a href="<?php echo site_url('tourism/tourism'); ?>"><img src="/skins/scenic/images/paySucc-1.jpg"></a>
        <a href="<?php echo site_url('scenic/home/index'); ?>"><img src="/skins/scenic/images/paySucc-2.jpg"></a>
        <a href="<?php echo $this->config->www_base_url, 'wap/hotel/wap_hotel.html'; ?>"><img src="/skins/scenic/images/paySucc-3.jpg"></a>
        <a href="<?php echo site_url() ?>"><img src="/skins/scenic/images/paySucc-4.jpg"></a>
    </div>

    <?php if (! empty($scenicInfo)) : ?>
    <div class="scenic scenic-scanPay-box" id="nearby-scenic-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 附近景区异步加载 -->
    </div>

    <div class="hotel scenic-scanPay-box" id="nearby-hotel-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 附近酒店异步加载 -->
    </div>

    <div class="recommend scenic-scanPay-box" id="nearby-tourism-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 周边特产异步加载 -->
    </div>
    <?php endif; ?>
</div>
<?php js('scenic', 'scanpay');?>
